<?php	namespace Home\Controller;
use Hdphp\Libs\Controller;
class IndexController extends Controller
{
	public function index()
	{
		//M()实例化模型的函数，在functions.php里面
		$data = M()->query("select * from stu");
		p($data);
		$this->display();
	}
	public function code()
	{
		new \Hdphp\Tools\Code();
	}
}
